package com.leyou.dao.db1;

import com.leyou.domain.db1entity.TableCell;
import com.leyou.domain.db1entity.TurnTableRecord;
import com.leyou.domain.vo.StartTurnVO;
import com.leyou.domain.vo.TurnTableActivityInfoVO;
import org.apache.ibatis.annotations.Param;

public interface Db1Mapper {

    TurnTableActivityInfoVO getTurnTableActivityInfoVO(@Param("activityKey") String activityKey);


    Integer getTurnTableRecordCount(@Param("tableCell") TableCell tableCell, @Param("activityKey") String activityKey);


    TableCell getAvailableTableCell(String activityKey);


    int putTableRecord(TurnTableRecord turnTableRecord);

    /**
     * @author lixin
     * @date 15:15 2018/11/28 0028
     * @param tableCell
     * @return int
     * @description 削减奖品数量
     **/
    int updateTableCell(TableCell tableCell);


    int getActivityTryCountByUserId(StartTurnVO startTurnVO);
}
